<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/EmptyPHPWebPage.php to edit this template
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        $path="c:\\";
        $floder= scandir($path);
        if($floder){
            foreach ($floder as $k=>$v){
                echo "<br/>".$k. "-->".$v;
                if(is_dir($path.$v)){
                    echo " 是目录";
                    $f=scandir($path.$v);
                    foreach ($f as $k1=>$v1){
                        echo "<br/> ".$v1;
                        if(is_dir($path.$v1)){
                            echo " 是文档";
                            $f1=scandir($path.$v1);
                        }
                    }
                }else{
                    echo " 是文件";
                    
                }
            }
        }
        ?>
    </body>
</html>
